package com.jhgsys.internal.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.converter.TimeConverter;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author wanghw
 * @CreateTime 2024/7/25 17:20
 * @Description TODO
 * @Version 1.0
 */
@Data
@TableName("BASIC_POST")
@Excel("岗位表")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Post implements Serializable {
    private static final long serialVersionUID = -6791066263471471698L;

    /**
     * 岗位 ID
     */
    @TableId(value = "post_id", type = IdType.ASSIGN_UUID)
    private String postId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @ExcelField(value = "租户Id")
    private String tenantId;

    /**
     * 岗位编号
     */
    @TableField("post_code")
    @ExcelField(value = "岗位编号")
    private String postCode;

    /**
     * 岗位名称
     */
    @TableField("post_name")
    @ExcelField(value = "岗位名称")
    private String postName;

    /**
     * 状态;0：禁用 1：启用
     */
    @TableField("status")
    @ExcelField(value = "状态")
    private String status;

    /**
     * 排序
     */
    @TableField("sort")
    @ExcelField(value = "排序")
    private Integer sort;

    /**
     * 备注
     */
    @TableField("remark")
    @ExcelField(value = "备注")
    private String remark;

    /**
     * 创建人
     */
    @TableField("created_by")
    @ExcelField("创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField("created_time")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField("updated_by")
    @ExcelField("更新人")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @ExcelField(value = "修改时间", writeConverter = TimeConverter.class)
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @ExcelField("删除人")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @ExcelField(value = "删除时间", writeConverter = TimeConverter.class)
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @ExcelField("删除标记")
    private String deletedFlg;

}
